﻿using ConsoleApp3.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            using (AdmiDb contexr = new AdmiDb())
            {
                contexr.Database.Initialize(true);

                contexr.Users.Add(new User
                {
                    UserName = "admin",
                    Password = "123",
                    IsActived = true,
                    IsDeleted = false,
                    CreatedTime = DateTime.Now,
                    UpdateTime = DateTime.Now
                });
                contexr.SaveChanges();
            }
        }

    }
}
